package datatype

object FloatDemo {
  def main(args: Array[String]): Unit = {
    val n1 = 5.12E2
    println("n1 = " + n1)
    val n2 = 5.12E-2
    println("n2 = " + n2)
    val n3 = 2.2345678912f  // float保留至小数点后7位
    val n4 = 2.2345678912
    println("n3 = " + n3)
    println("n4 = " + n4)
  }
}
